<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
 
 
   <div id="main" style="height:400px;"></div>
    ...C:\0wkspc\hislog\WebContent\echarts-2.2.7\build\source\echarts-all.js
    <script src="echarts-2.2.7\build\source\echarts-all.js"></script>
	   <script src="echarts-2.2.7\doc\example\theme\dark.js"></script>
	 
    <script>
//	var define = require('echarts/define');  
	//var ecConfig = echarts.config;  
	//e_macarons  ,'dark'
        var myChart = echarts.init(document.getElementById('main'));
       option = {
	   theme:"dark",
    title : {
        text: '服务器资源占用情况',
        subtext: 'cpu mem io'
    },
    tooltip : {
        trigger: 'axis'
    },
    legend: {
        data:['cpu','内存','io']
    },
    toolbox: {
        show : true,
        feature : {
            mark : {show: true},
            dataView : {show: true, readOnly: false},
            magicType : {show: true, type: ['line', 'bar', 'stack', 'tiled']},
            restore : {show: true},
            saveAsImage : {show: true}
        }
    },
    calculable : true,
    xAxis : [
        {
            type : 'category',
            boundaryGap : false,
            data : ['t1','t2','t3','t4','t5','t6','t7']
        }
    ],
    yAxis : [
        {
            type : 'value'
        }
    ],
    series : [
        {
            name:'cpu',
            type:'line',
            smooth:true,
            itemStyle: {normal: {areaStyle: {type: 'default'}}},
            data:[10, 12, 21, 54, 260, 830, 710]
        },
        {
            name:'内存',
            type:'line',
            smooth:true,
            itemStyle: {normal: {areaStyle: {type: 'default'}}},
            data:[30, 182, 434, 791, 390, 30, 10]
        },
        {
            name:'io',
            type:'line',
            smooth:true,
            itemStyle: {normal: {areaStyle: {type: 'default'}}},
            data:[1320, 1132, 601, 234, 120, 90, 20]
        }
    ]
};
                    
        myChart.setOption(option);
		
		
		
		window.clipboardData.setData('Text', 'aaaaaaaaajs clip');
    </script>


 